﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="SuppliesManage.aspx.cs" Inherits="ServicesSheet_SuppliesManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
    <div>
            <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster"
                DataMember="Services_SV_Supplies" CacheDataSet="True">
            </InfoLight:WebDataSource>
            <InfoLight:WebDefault ID="WebDefault1" runat="server" DataMember="Services_SV_Supplies"
                DataSourceID="Master">
                <Fields>
                    <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="SId" />
                </Fields>
            </InfoLight:WebDefault>
            <InfoLight:WebDataSource ID="wdsType" runat="server" SelectAlias="Usasdb" SelectCommand="select &#13;&#10;  Services_SV_Supplies_SV_Type.TId,&#13;&#10;  Services_SV_Supplies_SV_Type.TName &#13;&#10;from &#13;&#10;  Services_SV_Supplies_SV_Type" CacheDataSet="True">
            </InfoLight:WebDataSource><InfoLight:WebDataSource ID="wdsProvider" runat="server" SelectAlias="Usasdb" SelectCommand="select Services_SV_Provider.ProId,&#13;&#10;Services_SV_Provider.ProName,&#13;&#10;Services_SV_Provider.ProDisp &#13;&#10;from &#13;&#10;Services_SV_Provider" CacheDataSet="True">
            </InfoLight:WebDataSource><InfoLight:WebDataSource ID="wdsUnits" runat="server" SelectAlias="Usasdb" SelectCommand="select &#13;&#10;Sys_Units.UId,&#13;&#10;Sys_Units.UName &#13;&#10;from &#13;&#10;Sys_Units" CacheDataSet="True">
            </InfoLight:WebDataSource>
            <InfoLight:WebRefVal ID="Query_Type" runat="server" DataSourceID="wdsType" DataTextField="TName"
                DataValueField="TId" Visible="False">
            </InfoLight:WebRefVal>
            <InfoLight:WebRefVal ID="Query_Provider" runat="server" DataSourceID="wdsProvider"
                DataTextField="ProName" DataValueField="ProId" Visible="False">
            </InfoLight:WebRefVal>
            <InfoLight:WebValidate ID="WebValidate1" runat="server" AltRowCss="" DataMember="Services_SV_Supplies"
                DataSourceID="Master" ForeColor="Red" RowCss=""><Fields>
<InfoLight:ValidateFieldItem FieldName="SName" CheckNull="True"></InfoLight:ValidateFieldItem>
</Fields>
</InfoLight:WebValidate>
 <InfoLight:WebNavigator ID="WebNavigator1" runat="server" BindingObject="wgvMaster"
                Width="100%" StatusStrip="WebStatusStrip1" 
                CssClass="NavigatorBar">
                <NavControls>
                    <InfoLight:ControlItem ControlName="Add" ControlText="穝糤" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/add_C.gif" MouseOverImageUrl="../image/uipics/add2_C.gif"
                        Size="48" />
                    <InfoLight:ControlItem ControlName="Apply" ControlText="郎" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/apply_C.gif" MouseOverImageUrl="../image/uipics/apply2_C.gif"
                        Size="48" />
                    <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/abort_C.gif" MouseOverImageUrl="../image/uipics/abort2_C.gif"
                        Size="48" />
                    <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/query_C.gif" MouseOverImageUrl="../image/uipics/query2_C.gif"
                        Size="48" />
                </NavControls>
                <NavStates>
                    <InfoLight:WebNavigatorStateItem StateText="Initial" />
                    <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                    <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                    <InfoLight:WebNavigatorStateItem StateText="Editing" />
                    <InfoLight:WebNavigatorStateItem StateText="Applying" />
                    <InfoLight:WebNavigatorStateItem StateText="Changing" />
                    <InfoLight:WebNavigatorStateItem StateText="Querying" />
                    <InfoLight:WebNavigatorStateItem StateText="Printing" />
                </NavStates>
                <QueryFields>
                    <InfoLight:WebQueryField Caption="办公品编号" Condition="" DefaultValue="" FieldName="SId"
                        Mode="" />
                    <InfoLight:WebQueryField Caption="办公品名称" Condition="" DefaultValue="" FieldName="SName"
                        Mode="" />
                    <InfoLight:WebQueryField Caption="型号" Condition="" DefaultValue="" FieldName="SType"
                        Mode="" RefVal="" />
                    <InfoLight:WebQueryField Caption="分类" Condition="=" DefaultValue="" FieldName="TypeId"
                        Mode="ComboBox" RefVal="Query_Type" />
                    <InfoLight:WebQueryField Caption="供应商" Condition="=" DefaultValue="" FieldName="ProId"
                        Mode="RefVal" RefVal="Query_Provider" />
                </QueryFields>
            </InfoLight:WebNavigator>
            <InfoLight:WebGridView ID="wgvMaster" runat="server" CellPadding="5" DataSourceID="Master"
            ForeColor="#333333" Width="100%" AbortIconUrl="../Image/UIPics/Abort.gif" AddIconUrl="../Image/UIPics/Add.gif"
            ApplyIconUrl="../Image/UIPics/Apply.gif" CancelIconUrl="../Image/UIPics/Cancel.gif"
            MouseOverAbortIconUrl="../Image/UIPics/Abort2.gif" MouseOverAddIconUrl="../Image/UIPics/Add2.gif"
            MouseOverApplyIconUrl="../Image/UIPics/Apply2.gif" MouseOverCancelIconUrl="../Image/UIPics/Cancel2.gif"
            MouseOverOKIconUrl="../Image/UIPics/OK2.gif" MouseOverQueryIconUrl="../Image/UIPics/Query2.gif"
            OKIconUrl="../Image/UIPics/OK.gif" QueryIconUrl="../Image/UIPics/Query.gif" HeaderStyleWrap="False"
            BackColor="White" BorderColor="White" BorderStyle="Groove" BorderWidth="2px" 
                PageSize="15" AllowSorting="True">
            <PagerSettings Mode="NumericFirstLast" />
            <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
            <NavControls>
                <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif"
                    ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif"
                    ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif"
                    ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif">
                </InfoLight:ControlItem>
            </NavControls>
            <Columns>
                <asp:TemplateField ShowHeader="False">
                    <edititemtemplate>
<asp:ImageButton id="ImageButton1" runat="server" Text="Update" CausesValidation="True" ImageUrl="~/Image/UIPics/OK.gif" CommandName="Update"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton2" runat="server" Text="Cancel" CausesValidation="False" ImageUrl="~/Image/UIPics/Cancel.gif" CommandName="Cancel"></asp:ImageButton>
</edititemtemplate>
                    <itemtemplate>
<asp:ImageButton id="ImageButton3" runat="server" CommandName="Edit" Text="Edit" ImageUrl="~/Image/UIPics/Edit.gif" CausesValidation="False"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton4" runat="server" CommandName="Delete" Text="Delete" ImageUrl="~/Image/UIPics/icon_delete.gif" CausesValidation="False" ImageAlign="AbsMiddle"></asp:ImageButton> 
</itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>
                <asp:BoundField DataField="SId" HeaderText="编码" SortExpression="SId" ReadOnly="True" />
                <asp:TemplateField HeaderText="是否使用">
                    <edititemtemplate>
<InfoLight:WebCheckBox id="WebCheckBox2" runat="server" Checked='<%# Bind("IsUse") %>' __designer:wfdid="w23" KeyValues BindingType="Boolean"></InfoLight:WebCheckBox>
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebCheckBox id="WebCheckBox2" runat="server" Checked='<%# Bind("IsUse") %>' __designer:wfdid="w24" KeyValues BindingType="Boolean"></InfoLight:WebCheckBox>
</footertemplate>
                    <itemtemplate>
<InfoLight:WebCheckBox id="WebCheckBox1" runat="server" Enabled="False" Checked='<%# Bind("IsUse") %>' __designer:wfdid="w22" KeyValues BindingType="Boolean"></InfoLight:WebCheckBox>
</itemtemplate>
                    <controlstyle width="60px" />
                    <footerstyle horizontalalign="Center" verticalalign="Middle" width="60px" />
                    <headerstyle width="60px" />
                    <itemstyle horizontalalign="Center" verticalalign="Middle" width="60px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="办公品名称" SortExpression="SName">
                    <edititemtemplate>
<asp:TextBox id="TextBox2" runat="server" Width="120px" Text='<%# Bind("SName") %>' __designer:wfdid="w52"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="TextBox2" runat="server" Width="120px" Text='<%# Bind("SName") %>' __designer:wfdid="w53"></asp:TextBox> 
</footertemplate>
         <itemtemplate>
  <asp:Label runat="server" Text='<%# Eval("SName") %>'></asp:Label>                  
</itemtemplate>             
                </asp:TemplateField>
                <asp:TemplateField HeaderText="所属类别" SortExpression="TypeId">
                    <edititemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList3" runat="server" DataSourceID="wdsType" DataValueField="TId" DataTextField="TName" Width="180px" AppendDataBoundItems="True" DriverObject FilterObject Filter AutoInsertEmptyData="False" SelectedValue='<%# Bind("TypeId") %>' __designer:wfdid="w2"><asp:ListItem Selected="True"></asp:ListItem>
</InfoLight:WebDropDownList> 
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebDropDownList id="WebDropDownList3" runat="server" DataSourceID="wdsType" DataValueField="TId" DataTextField="TName" Width="180px" AppendDataBoundItems="True" DriverObject FilterObject Filter AutoInsertEmptyData="False" SelectedValue='<%# Bind("TypeId") %>' __designer:wfdid="w3"><asp:ListItem Selected="True"></asp:ListItem>
</InfoLight:WebDropDownList> 
</footertemplate>
                    <itemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList3" runat="server" DataSourceID="wdsType" DataValueField="TId" DataTextField="TName" Width="180px" OnlyShowSelectText="True" AppendDataBoundItems="True" Enabled="False" DriverObject FilterObject Filter AutoInsertEmptyData="False" SelectedValue='<%# Bind("TypeId") %>' __designer:wfdid="w1"><asp:ListItem Selected="True"></asp:ListItem>
</InfoLight:WebDropDownList> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="型号" SortExpression="SType">
                    <edititemtemplate>
<asp:TextBox id="TextBox1" runat="server" Width="120px" Text='<%# Bind("SType") %>' __designer:wfdid="w42"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="TextBox1" runat="server" Width="120px" Text='<%# Bind("SType") %>' __designer:wfdid="w43"></asp:TextBox> 
</footertemplate>
                    <itemtemplate>
  <asp:Label runat="server" Text='<%# Eval("SType") %>'></asp:Label>                  
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="单位" SortExpression="UId">
                    <edititemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList2" runat="server" DataSourceID="wdsUnits" Width="80px" AppendDataBoundItems="True" DriverObject FilterObject Filter AutoInsertEmptyData="False" SelectedValue='<%# Bind("UId") %>' __designer:wfdid="w67" DataTextField="UName" DataValueField="UId"><asp:ListItem Selected="True"></asp:ListItem>
</InfoLight:WebDropDownList> 
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebDropDownList id="WebDropDownList2" runat="server" DataSourceID="wdsUnits" Width="80px" AppendDataBoundItems="True" DriverObject FilterObject Filter AutoInsertEmptyData="False" SelectedValue='<%# Bind("UId") %>' __designer:wfdid="w68" DataTextField="UName" DataValueField="UId"><asp:ListItem Selected="True"></asp:ListItem>
</InfoLight:WebDropDownList> 
</footertemplate>
                    <itemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList2" runat="server" DataSourceID="wdsUnits" Width="80px" DataValueField="UId" DataTextField="UName" __designer:wfdid="w11" SelectedValue='<%# Bind("UId") %>' AutoInsertEmptyData="False" Filter FilterObject DriverObject Enabled="False" AppendDataBoundItems="True" OnlyShowSelectText="True"><asp:ListItem Selected="True"></asp:ListItem>
</InfoLight:WebDropDownList> 
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Remark" HeaderText="备注" SortExpression="Remark"  />
                <asp:TemplateField HeaderText="供应商" SortExpression="ProId">
                    <edititemtemplate>
<InfoLight:WebRefVal id="WebRefVal1" runat="server" DataSourceID="wdsProvider" DataValueField="ProId" DataTextField="ProName" Width="180px" ReadOnly="False" UseButtonImage="True" ResxDataSet ResxFilePath PostBackButonClick="False" BindingText MultiLanguage="False" UpdatePanelID DataBindingField="ProId" AllowAddData="False" BindingValue='<%# Bind("ProId") %>' ButtonImageUrl="../Image/refval/RefVal.gif" __designer:wfdid="w17"></InfoLight:WebRefVal> 
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebRefVal id="WebRefVal1" runat="server" DataSourceID="wdsProvider" DataValueField="ProId" DataTextField="ProName" Width="180px" ReadOnly="False" UseButtonImage="True" ResxDataSet ResxFilePath PostBackButonClick="False" BindingText MultiLanguage="False" UpdatePanelID DataBindingField="ProId" AllowAddData="False" BindingValue='<%# Bind("ProId") %>' ButtonImageUrl="../Image/refval/RefVal.gif" __designer:wfdid="w18"></InfoLight:WebRefVal> 
</footertemplate>
                    <itemtemplate>
<InfoLight:WebRefVal id="WebRefVal1" runat="server" DataSourceID="wdsProvider" DataValueField="ProId" DataTextField="ProName" Width="180px" BorderStyle="None" BorderColor="Transparent" BackColor="Transparent" ReadOnly="True" UseButtonImage="True" ResxDataSet ResxFilePath PostBackButonClick="False" BindingText MultiLanguage="False" UpdatePanelID DataBindingField="ProId" AllowAddData="False" BindingValue='<%# Bind("ProId") %>' ButtonImageUrl="../Image/refval/RefVal.gif" __designer:wfdid="w16"></InfoLight:WebRefVal> 
</itemtemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle BackColor="#EFF3FB"></RowStyle>
            <EditRowStyle BackColor="#2461BF"></EditRowStyle>
            <SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>
            <PagerStyle BackColor="LightBlue" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
            <HeaderStyle BackColor="DeepSkyBlue" ForeColor="White" Font-Bold="True"></HeaderStyle>
            <AlternatingRowStyle BackColor="White" BorderColor="White"></AlternatingRowStyle>
            <AddNewRowControls>
                <InfoLight:AddNewRowControlItem ControlID="TextBox2" ControlType="TextBox" FieldName="SName" />
                <InfoLight:AddNewRowControlItem ControlID="WebDropDownList3" ControlType="DropDownList"
                    FieldName="TypeId" />
                <InfoLight:AddNewRowControlItem ControlID="TextBox1" ControlType="TextBox" FieldName="SType" />
                <InfoLight:AddNewRowControlItem ControlID="WebDropDownList2" ControlType="DropDownList"
                    FieldName="UId" />
                <InfoLight:AddNewRowControlItem ControlID="WebRefVal1" ControlType="RefVal" FieldName="ProId" />
            </AddNewRowControls>
        </InfoLight:WebGridView>
</asp:Content>

